package com.nciae.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.nciae.po.Admin;
import com.nciae.po.Dormitory;
import com.baomidou.mybatisplus.extension.service.IService;
import com.nciae.po.Score;
import com.nciae.po.SecurityQuestion;
import org.springframework.http.ResponseEntity;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author Guoliyu
 * @since 2022-03-30
 */
public interface IDormitoryService extends IService<Dormitory> {

    List<Dormitory> findAll();

    IPage<Dormitory> findAll(int index, int capacity, Integer buildingNo, Integer roomNo);

    void add(Dormitory dormitory);

    void update(Dormitory dormitory);

    void delete(Long id);

    Dormitory findDormitoryById(Long id);

    // 批量导入宿舍
    void addList(List<Dormitory> dormitories);

    List<SecurityQuestion> findSecurityByDormitoryId(Long id);

    List<Score> findScoreById(Long id);


    List<Dormitory> findDormitoryByHeadId(Long id);
}
